import WKT from 'terraformer-wkt-parser'
const wktToGeojson = (wkts:string):Promise<GeoJSON.GeometryObject> => {
    return Promise.resolve(WKT.parse(wkts))
}
const geoJsonToWkt = (geojson: GeoJSON.GeometryObject):Promise<string> => {
    return Promise.resolve(WKT.convert(geojson))
}

export {
    wktToGeojson, geoJsonToWkt
}